package com.example.cinema.repository;

import com.example.cinema.model.Ticket;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;

public interface TicketRepository extends JpaRepository<Ticket, Integer> {
    Optional<Ticket> findByScheduleIdAndRowNoAndColNo(Integer scheduleId, Integer rowNo, Integer colNo);
}